package com.kly.sc.api.application.service.system.impl;

import com.kly.sc.api.application.enums.SwitchTypeEnum;
import com.kly.sc.api.application.remote.UserSwitchManageRemoteService;
import com.kly.sc.api.application.remote.req.SwitchManageListReq;
import com.kly.sc.api.application.service.system.AppConfigApiService;
import com.kly.sc.api.infras.app.RequestBasicInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AppConfigApiServiceImpl implements AppConfigApiService {

    @Resource
    UserSwitchManageRemoteService userSwitchManageRemoteService;

    @Override
    public boolean getSwitch(SwitchTypeEnum switchType, RequestBasicInfo requestBasicInfo) {
        return userSwitchManageRemoteService.getSwitch(SwitchManageListReq.from(switchType, requestBasicInfo));
    }
}
